Cosimo Cecchi [Sun, 17 Jan 2016 19:24:01 +0000 (17:24 -0200)]
range: remove call that is not needed
gtk_range_calc_slider() already calls the same function when needed.
Cosimo Cecchi [Sun, 17 Jan 2016 00:44:50 +0000 (16:44 -0800)]
range: simplify code a bit
Cosimo Cecchi [Sun, 17 Jan 2016 00:30:59 +0000 (16:30 -0800)]
range: don't call gtk_range_calc_layout() in realize()
This should not be needed, and we want to get rid of
gtk_range_calc_layout().
Cosimo Cecchi [Sun, 17 Jan 2016 00:27:35 +0000 (16:27 -0800)]
range: deprecate arrow-scaling style property
This can be done with CSS now.
Cosimo Cecchi [Sun, 17 Jan 2016 00:27:24 +0000 (16:27 -0800)]
range: use newer GtkCssGadget API
Cosimo Cecchi [Wed, 13 Jan 2016 23:01:47 +0000 (15:01 -0800)]
range: deprecate trough-under-steppers
It's not clear what this would do in a CSS world, and all the themes set
it to TRUE anyway...
Cosimo Cecchi [Sat, 9 Jan 2016 22:00:09 +0000 (14:00 -0800)]
range: first pass at porting to gadgets
There's still a lot to be done, but this is functional and we'll improve
the loose ends in the next commits.
Matthias Clasen [Mon, 29 Feb 2016 18:16:50 +0000 (13:16 -0500)]
Move the level bar release note to the right section
Paolo Borelli [Mon, 29 Feb 2016 17:03:38 +0000 (18:03 +0100)]
win32: init wintab when the device manager is constructed
No need to call a method explicitely after creating the object
Paolo Borelli [Mon, 29 Feb 2016 17:17:28 +0000 (18:17 +0100)]
win32: actually call _gdk_win32_screen_on_displaychange_event
41a371c435533aee5f050500c90507844cb1e45e factored out a method
but I forgot to actually amend the commit to call the new function
Ray Strode [Sat, 27 Feb 2016 21:17:38 +0000 (16:17 -0500)]
wayland: deal with staging buffer getting allocated prematurely
The staging buffer gets allocated any time begin_paint is called
on the window. This can happen even with an empty paint region,
so we should cope with that situation. At the moment we crash
trying to post a runtime warning.
https://bugzilla.gnome.org/show_bug.cgi?id=762755
Jordi Mas [Mon, 29 Feb 2016 15:34:30 +0000 (16:34 +0100)]
Fixes to Catalan translation
Timm Bäder [Fri, 26 Feb 2016 13:07:49 +0000 (14:07 +0100)]
frame: Fix horizontal size request
We were adding the border gadget size and the label widget size in any
case, but when calculating the width, we want the maximum of those two,
not the sum.
https://bugzilla.gnome.org/show_bug.cgi?id=760482
Paolo Borelli [Sun, 28 Feb 2016 14:15:29 +0000 (15:15 +0100)]
gdk: remove the core_pointer field from GdkDisplay
It is not used anymore, so no need to set it
https://bugzilla.gnome.org/show_bug.cgi?id=762820
Paolo Borelli [Sun, 28 Feb 2016 14:11:45 +0000 (15:11 +0100)]
quartz: get the core pointer from the device manager
https://bugzilla.gnome.org/show_bug.cgi?id=762820
Paolo Borelli [Sun, 28 Feb 2016 14:06:53 +0000 (15:06 +0100)]
broadway: get the core pointer from the device manager
https://bugzilla.gnome.org/show_bug.cgi?id=762820
Paolo Borelli [Sun, 28 Feb 2016 14:05:32 +0000 (15:05 +0100)]
gdkdisplay: get the pointer device from the default seat
https://bugzilla.gnome.org/show_bug.cgi?id=762820
Paolo Borelli [Sun, 28 Feb 2016 14:04:40 +0000 (15:04 +0100)]
gdkwindow: get the pointer device from the default seat
https://bugzilla.gnome.org/show_bug.cgi?id=762820
Matthias Clasen [Mon, 29 Feb 2016 02:29:35 +0000 (21:29 -0500)]
Add and use GDK_CHECK_DEBUG macro
This is following what we've already done in GTK+. It avoids
direct access to _gdk_debug_flags all over the place.
Matthias Clasen [Mon, 29 Feb 2016 02:29:16 +0000 (21:29 -0500)]
x11: Don't use g_print for debug output
The g_print documentation explicitly says not to do this, since
g_print is meant to be redirected by applications. Instead use
g_message for logging that can be triggered via GTK_DEBUG.
Matthias Clasen [Mon, 29 Feb 2016 02:28:01 +0000 (21:28 -0500)]
wayland: Don't use g_print for debug output
The g_print documentation explicitly says not to do this, since
g_print is meant to be redirected by applications. Instead use
g_message for logging that can be triggered via GTK_DEBUG.
Matthias Clasen [Mon, 29 Feb 2016 02:26:26 +0000 (21:26 -0500)]
quartz: Don't use g_print for debug output
The g_print documentation explicitly says not to do this, since
g_print is meant to be redirected by applications. Instead use
g_message for logging that can be triggered via GTK_DEBUG.
Matthias Clasen [Sun, 28 Feb 2016 20:39:05 +0000 (15:39 -0500)]
gdk: Don't use g_print for debug output
The g_print documentation explicitly says not to do this, since
g_print is meant to be redirected by applications. Instead use
g_message for logging that can be triggered via GTK_DEBUG.
Matthias Clasen [Sun, 28 Feb 2016 20:36:14 +0000 (15:36 -0500)]
testsuite: Fix up icontheme test
This test was relying on GtkIconTheme using g_print for
debug spew. Adapt it to use g_logv instead.
Matthias Clasen [Sun, 28 Feb 2016 20:33:18 +0000 (15:33 -0500)]
Don't use g_print for debug output
The g_print documentation explicitly says not to do this, since
g_print is meant to be redirected by applications. Instead use
g_message for logging that can be triggered via GTK_DEBUG.
Matthias Clasen [Sun, 28 Feb 2016 20:26:52 +0000 (15:26 -0500)]
Drop some unused debug printfs
Remove some debug spew that has been ifdef'ed out for years
and does not look useful enough to keep.
Cosimo Cecchi [Sun, 28 Feb 2016 18:58:06 +0000 (10:58 -0800)]
widget: make sure to check all children for allocation needs
GtkWidget uses gtk_container_foreach() to iterate over children and
check whether they need their allocation reset.
However, that leaves out internal children, such as scrollbars of a
GtkScrolledWindow. Use gtk_container_forall() instead.
Paolo Borelli [Sun, 28 Feb 2016 18:00:41 +0000 (19:00 +0100)]
gdk: remove _gdk_event_queue_prepend
It is never used
Matthias Clasen [Sun, 28 Feb 2016 17:31:20 +0000 (12:31 -0500)]
display: Don't change default seat in flight
gdk_display_add_seat was prepending new seats to the list, which
was effectively making the added seat the new default. Since that
is probably not intended, append to the list.
Matthias Clasen [Sun, 28 Feb 2016 17:22:55 +0000 (12:22 -0500)]
testsuite: Strip newlines from g_warning and g_error
g_logv adds one for us already.
Matthias Clasen [Sun, 28 Feb 2016 17:21:29 +0000 (12:21 -0500)]
tests: Strip newlines from g_warning and g_error
g_logv adds one for us already.
Matthias Clasen [Sun, 28 Feb 2016 17:21:09 +0000 (12:21 -0500)]
wayland: Strip newlines from g_warning and g_error
g_logv adds one for us already.
Matthias Clasen [Sun, 28 Feb 2016 17:20:56 +0000 (12:20 -0500)]
quartz: Strip newlines from g_warning and g_error
g_logv adds one for us already.
Matthias Clasen [Sun, 28 Feb 2016 17:20:39 +0000 (12:20 -0500)]
gdk: Strip newlines from g_warning and g_error
g_logv adds one for us already.
Matthias Clasen [Sun, 28 Feb 2016 17:19:58 +0000 (12:19 -0500)]
x11: Strip newlines from g_warning and g_error
g_logv adds one for us already.
Matthias Clasen [Sun, 28 Feb 2016 17:19:31 +0000 (12:19 -0500)]
broadway: Strip newlines from g_warning and g_error
g_logv adds one for us already.
Matthias Clasen [Sun, 28 Feb 2016 17:19:09 +0000 (12:19 -0500)]
examples: Strip newlines from g_warning and g_error
g_logv adds one for us already.
Matthias Clasen [Sun, 28 Feb 2016 17:18:36 +0000 (12:18 -0500)]
gtk-demo: Strip newlines from g_warning and g_error
g_logv adds one for us already.
Matthias Clasen [Sun, 28 Feb 2016 16:06:25 +0000 (11:06 -0500)]
gtk: Strip newlines from g_warning and g_error
g_logv adds one for us already.
Paolo Borelli [Sun, 28 Feb 2016 15:22:31 +0000 (16:22 +0100)]
gdkwindow: cleanup, avoid direct access to display members
Piotr Drąg [Sun, 28 Feb 2016 16:11:05 +0000 (17:11 +0100)]
Updated POTFILES.skip
Paolo Borelli [Sun, 28 Feb 2016 14:33:28 +0000 (15:33 +0100)]
win32: close the screen when disposing the display
Matthias Clasen [Sun, 28 Feb 2016 14:38:31 +0000 (09:38 -0500)]
Add a release note about subclassing
This is showing up in bug reports like
https://bugzilla.gnome.org/show_bug.cgi?id=762754
so better add a note that gives a hint at the solution.
Timm Bäder [Fri, 26 Feb 2016 13:09:28 +0000 (14:09 +0100)]
frame: Don't move border gadget and child down
Setting label-yalign should affect the border gadget, but we need to
compensate for its position by moving the child down or up, depending on
the border gadget's position, so the child never moves.
https://bugzilla.gnome.org/show_bug.cgi?id=762123
Emmanuele Bassi [Sun, 28 Feb 2016 12:21:26 +0000 (12:21 +0000)]
Fix builddir != srcdir
The gdkprivate-wayland.h header file is included from the top-level gdk
directory; this means that all included files referenced in the header
must be relative to the `gdk` directory, otherwise the build will fail
when the build directory is not equal to the source directory.
This commit fixes a build failure under continuous:
In file included from ../../gdk/gdkdisplaymanager.c:60:0:
../../gdk/wayland/gdkprivate-wayland.h:40:51: fatal error:
gtk-primary-selection-client-protocol.h: No such file or directory
#include "gtk-primary-selection-client-protocol.h"
^
compilation terminated.
Makefile:1155: recipe for target 'libgdk_3_la-gdkdisplaymanager.lo' failed
make[4]: *** [libgdk_3_la-gdkdisplaymanager.lo] Error 1
Paolo Borelli [Sun, 28 Feb 2016 11:03:00 +0000 (12:03 +0100)]
win32: factor out on_displaychange_event method for the screen
This allows us to make more initialization methods private to the
screen object.
Paolo Borelli [Sun, 28 Feb 2016 10:56:01 +0000 (11:56 +0100)]
win32: make init_root_window private to the screen object
It can be called during the screen object initilization
Paolo Borelli [Sun, 28 Feb 2016 10:53:10 +0000 (11:53 +0100)]
win32: move function
Just reorder code in preparation to calling functions defined
before this one
Paolo Borelli [Sun, 28 Feb 2016 10:50:07 +0000 (11:50 +0100)]
win32: rename initialization function for clarity
Paolo Borelli [Sun, 28 Feb 2016 10:25:54 +0000 (11:25 +0100)]
win32: do not confuse gtk-doc
Paolo Borelli [Sat, 27 Feb 2016 14:23:19 +0000 (15:23 +0100)]
win32: move gdkvisual code in gdkscreen
Except for the init function, all the visual related code is made
of gdkscreen vfuncs, so let's move it to gdkscreen-win32. This way
we avoid keeping other static variables and instead store the info
inside the screen struct.
Matthias Clasen [Sun, 28 Feb 2016 04:46:25 +0000 (23:46 -0500)]
gtk-demo: Simplify ui files a bit
Strip unneeded IDs.
Matthias Clasen [Sun, 28 Feb 2016 04:43:06 +0000 (23:43 -0500)]
gtk-demo: Put hte app menu in a separate file
No need to cram it in the same file as the main window.
Matthias Clasen [Sun, 28 Feb 2016 04:35:33 +0000 (23:35 -0500)]
gtk-demo: Add some padding in sidebar
Add some padding on the right, to avoid the scrollbar and make
the sidebar appear balanced.
Matthias Clasen [Sun, 28 Feb 2016 04:28:17 +0000 (23:28 -0500)]
tutorial: Drop excessive margin from headerbar
It is no longer necessary to add extra margins around the
center child in a headerbar.
Matthias Clasen [Sun, 28 Feb 2016 04:12:15 +0000 (23:12 -0500)]
widget-factory: Make the sliding opt-in
The sliding is a little disorienting, so turn it off by default
and add a checkbutton for it in the gear menu.
Matthias Clasen [Sun, 28 Feb 2016 04:03:55 +0000 (23:03 -0500)]
file chooser: Don't ellipsize "Other Locations"
It just looks wrong if the file chooser comes up with
"Other Locations" ellipsized. Treat it like the other
fixed entries. We only want to ellipsize bookmarks, because
their length is unpredictable.
Matthias Clasen [Sun, 28 Feb 2016 03:39:09 +0000 (22:39 -0500)]
gtk3-demo: Update css
Clean up any deprecation warnings from the css examples in
gtk3-demo.
Jordi Mas [Sat, 27 Feb 2016 19:22:55 +0000 (20:22 +0100)]
Update Catalan translation
Benjamin Otte [Sat, 27 Feb 2016 16:02:59 +0000 (17:02 +0100)]
win32 theme: Implement GtkFrame
Benjamin Otte [Sat, 27 Feb 2016 04:46:00 +0000 (05:46 +0100)]
win32 theme: Remove special case for notebooks
The special case is coded into Wine, but it makes notebooks
disappear wrong. So remove it.
Benjamin Otte [Sat, 27 Feb 2016 13:23:06 +0000 (14:23 +0100)]
win32: Implement fallback code for tabs
This is naive code in that it doesn't do the rounded edges for the
tab items yet. We can fix that later I guess.
Benjamin Otte [Sat, 27 Feb 2016 13:16:50 +0000 (14:16 +0100)]
win32: Add fallback drawing code for window frames
Benjamin Otte [Sat, 27 Feb 2016 12:28:14 +0000 (13:28 +0100)]
win32: Finish button drawing code
We now draw real Windows 95 buttons.
Also split out a draw_edge() function that is supposed to emulate
Windows' DrawEdge() function. I guess we'll need it in other places,
too.
Paolo Borelli [Sat, 27 Feb 2016 10:43:18 +0000 (11:43 +0100)]
gdk: calculate pixel color shift and precision lazily
This gets rid of the decompose_mask utility entirely and simplifies
backend code.
Paolo Borelli [Sat, 27 Feb 2016 09:46:59 +0000 (10:46 +0100)]
gdk: factor out utility shared among backends
Removes duplicated code and makes sure we use the version which
is safe against infinite loops
Benjamin Otte [Sat, 27 Feb 2016 02:58:40 +0000 (03:58 +0100)]
notebook: Redo notebook implementation
So far, this only reworks the tabs at top implementation.
Windows doesn't have support for theming tabs at left/right/bottom
so we need to figure out what to do there. Wine falls back to
unthemed code.
Benjamin Otte [Sat, 27 Feb 2016 02:56:07 +0000 (03:56 +0100)]
boxgadget: Add ability to draw children in reverse
This is necessary for GtkNotebook so that the stack is always drawn
before the header.
And that is necessary so that the active tab can use negative
margins to overdraw the border of the stack to create a gap and
simulate old GTK2-style visuals for notebooks.
Benjamin Otte [Fri, 26 Feb 2016 23:40:09 +0000 (00:40 +0100)]
cssimagewin32: IMplement printing
Caveat: over() and margins() arent' printed, but they are soon gonna
be removed anyway.
Benjamin Otte [Fri, 26 Feb 2016 05:49:35 +0000 (06:49 +0100)]
window: Include decoration border and padding in resize area
This is relevant for the Windows theme, which is the only theme that
uses padding on decorations. All other themes are unaffected.
Benjamin Otte [Sat, 27 Feb 2016 02:48:46 +0000 (03:48 +0100)]
notebook: The active tab is now :checked
:active is reserved for "mouse button down on node", so we have to use
something else. And stack switcher and radio buttons use :checked for
the active widget, so it makes sense to use :checked for the active tab,
too.
Themes have been adapted.
TODO: Implement :active for tabs.
Benjamin Otte [Sat, 27 Feb 2016 02:39:51 +0000 (03:39 +0100)]
textview: Support borders in text node
Benjamin Otte [Sat, 27 Feb 2016 02:26:52 +0000 (03:26 +0100)]
textview: Fix coordinates when background drawing of text node
Fixes black areas in source view of gtk-demo.
Matthias Clasen [Sat, 27 Feb 2016 00:41:25 +0000 (19:41 -0500)]
wayland: Survive without primary selection
I am testing GTK+ master against mutter 3.19.90, so I'd
like GTK+ to survive even when the compositor does not
support the primary selection interface.
Cédric Valmary [Fri, 26 Feb 2016 20:56:32 +0000 (20:56 +0000)]
Updated Occitan translation
Matthias Clasen [Fri, 26 Feb 2016 20:50:31 +0000 (15:50 -0500)]
Avoid an out-of-bounds access
When the offset gets smaller than min_offset, we can't
access the array at that position.
Matthias Clasen [Fri, 26 Feb 2016 20:50:08 +0000 (15:50 -0500)]
Plug a small memory leak
Matthias Clasen [Fri, 26 Feb 2016 19:55:20 +0000 (14:55 -0500)]
infobar: Avoid a memory leak in an error case
Parsing <action-widgets> could sometimes fail to free
some of the data, if a nonexisting widget is referenced.
Found by gcc's leak sanitizer.
Matthias Clasen [Fri, 26 Feb 2016 19:51:24 +0000 (14:51 -0500)]
levelbar: Avoid a use-after-free
We were freeing the old offset before using its name to
recreate a new one. Don't do that.
Found by gcc's undefined behavior sanitizer.
Matthias Clasen [Fri, 26 Feb 2016 19:50:25 +0000 (14:50 -0500)]
dialog: Avoid a memory leak in an error case
Parsing <action-widgets> could sometimes fail to free
some of the data, if a nonexisting widget is referenced.
Found by gcc's leak sanitizer.
Matthias Clasen [Fri, 26 Feb 2016 19:48:21 +0000 (14:48 -0500)]
cssselector: Don't invoke undefined behavior
Avoid undefined behavior in the calculation of some
hash values. Found by gcc's undefined behavior sanitizer.
Matthias Clasen [Fri, 26 Feb 2016 19:47:16 +0000 (14:47 -0500)]
Avoid an a crash with GTK_DEBUG=builder
We might cast objects to GtkBuildable even if they aren't,
to print their names. Don't do that.
Found by gcc's address sanitizer.
Matthias Clasen [Fri, 26 Feb 2016 18:08:45 +0000 (13:08 -0500)]
Fix an memory overrun
This was detected by gccs address sanitizer.
Cédric Valmary [Fri, 26 Feb 2016 20:35:37 +0000 (20:35 +0000)]
Updated Occitan translation
Carlos Garnacho [Thu, 25 Feb 2016 23:28:05 +0000 (00:28 +0100)]
wayland: Use the page size as the selection buffer size
And ensure we don't attempt to read EOF twice, once is enough.
Carlos Garnacho [Thu, 4 Feb 2016 16:33:51 +0000 (17:33 +0100)]
wayland: Implement the (so far internal) primary selection protocol
Implement it using the internal copy of the protocol. Otherwise,
we just deal with it the same than clipboard selection, just mapping
it to the PRIMARY atom instead of the CLIPBOARD one.
https://bugzilla.gnome.org/show_bug.cgi?id=762561
Carlos Garnacho [Tue, 23 Feb 2016 19:32:31 +0000 (20:32 +0100)]
wayland: Make the function to get the last serial a seat one
This will be useful for primary selection.
https://bugzilla.gnome.org/show_bug.cgi?id=762561
Carlos Garnacho [Tue, 23 Feb 2016 19:20:42 +0000 (20:20 +0100)]
wayland: Add gtk-primary-selection protocol
This protocol is an internal mirror of the primary selection drafts
being proposed for wayland-protocols. No changes besides prefix/suffix
changes.
https://bugzilla.gnome.org/show_bug.cgi?id=762561
Lapo Calamandrei [Fri, 26 Feb 2016 18:01:19 +0000 (19:01 +0100)]
Adwaita: notebook tab sizing fix
Fredy Paquet [Fri, 26 Feb 2016 17:21:26 +0000 (17:21 +0000)]
W32: Fix for commit
1f74f12d9, re-enabling decimal separator key
1f74f12d9 rendered entry of keypad decimal mark unuseable for
several national keyboard layouts, this commit amends that, at
least for W32, and makes GTK+ behave more or less the same way
W32 behaves.
The patch works like this:
- When typing the first character at the keyboard or when switching
keyboard layouts, the decimal mark character will be cached in the
static variable "decimal_mark" within gdkkeys-win32.c
- in case of WIN32, gdk_keyval_to_unicode() asks gdkkeys-win32.c for the
current decimal_mark when converting GDK_KEY_KP_Decimal.
https://bugzilla.gnome.org/show_bug.cgi?id=756751
Lapo Calamandrei [Fri, 26 Feb 2016 12:15:37 +0000 (13:15 +0100)]
Adwaita: stricter selector for split headerbar separator
with a descendant select was erroneusly catching normal headerbar
separators in paned split headerabar case, see gedit. Using a child
selector fixes.
Lapo Calamandrei [Fri, 26 Feb 2016 12:07:09 +0000 (13:07 +0100)]
Adwaita: simplify mixed buttons styling
Lapo Calamandrei [Fri, 26 Feb 2016 11:53:02 +0000 (12:53 +0100)]
Adwaita: fix separator in non paned using split headerbar
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=762593
Carlos Soriano [Fri, 26 Feb 2016 10:54:53 +0000 (11:54 +0100)]
gtkplacessidebar: use gpointers in trash row
It's the right casting. Forgot to push it with the previous patch.
Carlos Soriano [Fri, 26 Feb 2016 10:01:38 +0000 (11:01 +0100)]
gtkplacessidebar: clean up trash row on destroy
Track with a weak ref the trash row, so we can clean up the data in the
private struct.
Spotted and reviewed by Christian Hergert.
Gábor Kelemen [Fri, 26 Feb 2016 09:14:53 +0000 (09:14 +0000)]
Updated Hungarian translation
Руслан Ижбулатов [Wed, 24 Feb 2016 17:20:33 +0000 (17:20 +0000)]
GDK W32: Fix the filling of MINMAXINFO
1) MSDN says that the coordinates of the maximized window
must be specified as if the window was on the primary display,
even if nearest display where it ends up is not the primary display.
So instead of using nearest display work area verbatim,
use it only to account for taskbar size, while using
primary display top-left corner (0:0) as the reference point.
2) MSDN says that max tracking size is a system property, we
should just call GetSystemMetrics() and use that.
https://bugzilla.gnome.org/show_bug.cgi?id=762629
Matthias Clasen [Fri, 26 Feb 2016 05:13:34 +0000 (00:13 -0500)]
Document CSS win32 size support
Benjamin Otte [Fri, 26 Feb 2016 02:17:01 +0000 (03:17 +0100)]
win32 theme: Make titlebuttons look like they're the right size
This is a hack because we can't really rtesize the buttons.
Instead, we draw the background only over the area that they would
be drawn if they were drawn by Windows. The button is still selectable
outside of this area, but what can you do...
Benjamin Otte [Fri, 26 Feb 2016 02:15:53 +0000 (03:15 +0100)]
win32 theme: Fix decorations
... and draw them properly.